package test;

public class Thread1 extends Thread {


    public Thread1() {

    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {

            System.out.println(i);
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
